package com.wuli.food.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiongqiaoqiao
 * @since 2023-05-18
 */
@Getter
@Setter
@TableName("food")
public class Food implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 菜品名称
     */
    private String name;

    /**
     * 所属类别
     */
    private String typeId;

    /**
     * 口味
     */
    private String taste;

    /**
     * 是否上架
     */
    private String state;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill =  FieldFill.INSERT)
    private Date createTime;



    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill =  FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
